package vn.edu.saigontech.ncms.model.result;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.OptimisticLockType;

import vn.edu.saigontech.ncms.model.BaseEntity;
import vn.edu.saigontech.ncms.model.user.User;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true, optimisticLock = OptimisticLockType.ALL)
@Table(name = "ncms_make_up_test")
@SuppressWarnings("serial")
public class MakeUpTest extends BaseEntity {
	
	@Temporal(TemporalType.DATE)
	@Column(name = "make_up_date")
	private Date makeUpDate;

	@Column(name = "receipt_no")
	private String receiptNo;

	@Column(name = "fee")
	private Double fee;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "cashier_id")
	private User cashier;

	public Date getMakeUpDate() {
		return makeUpDate;
	}

	public void setMakeUpDate(Date makeUpDate) {
		this.makeUpDate = makeUpDate;
	}

	public String getReceiptNo() {
		return receiptNo;
	}

	public void setReceiptNo(String receiptNo) {
		this.receiptNo = receiptNo;
	}

	public Double getFee() {
		return fee;
	}

	public void setFee(Double fee) {
		this.fee = fee;
	}

	public User getCashier() {
		return cashier;
	}

	public void setCashier(User cashier) {
		this.cashier = cashier;
	}
}